Convert all profiler times from nsec to usec
authorAlexander Larsson <alexl@redhat.com>
Wed, 12 Feb 2020 09:44:17 +0000 (10:44 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 12 Feb 2020 09:44:17 +0000 (10:44 +0100)
commitcc643df88b541b7505885ecff02c8576decf6bbd
tree9ad50d1837c511674bbd84557194c78b4b392a0e
parent13eedf1a9ff75e7b587842389afce6d3e5651a9b
Convert all profiler times from nsec to usec

usec is the scale of the monotonic timer which is where we get almost
all the times from. The only actual source of nsec is the opengl
GPU time (but who knows what the actual resulution of that is).

Changing this to usec allows us to get rid of " * 1000" in a *lot* of
places all over the codebase, which are ugly and confusing.
19 files changed:
gdk/gdkdrawcontext.c
gdk/gdkframeclock.c
gdk/gdkframeclockidle.c
gdk/gdkprofiler.c
gdk/gdksurface.c
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkglcontext-wayland.c
gdk/wayland/gdksurface-wayland.c
gsk/gl/gskglprofiler.c
gsk/gl/gskglrenderer.c
gsk/gskprofiler.c
gtk/gtkapplication.c
gtk/gtkbuilderparser.c
gtk/gtkcssnode.c
gtk/gtkcssprovider.c
gtk/gtkemojichooser.c
gtk/gtkicontheme.c
gtk/gtkwidget.c
gtk/gtkwindow.c